package com.exam.service.student;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.exam.common.vo.ExamStuVO;
import com.exam.common.vo.page.PageModel;
import com.exam.dao.student.StudentDao;
import com.exam.entity.ExamStu;

@Service
@Transactional
public class StuServiceImp implements StuService{

	@Autowired
	StudentDao stuDao;

	@Override
	public Serializable save(ExamStu entity) {
		return stuDao.save(entity);
	}

	@Override
	public Serializable merge(ExamStu entity) {
		return stuDao.merge(entity);
	}

	@Override
	public void update(ExamStu entity) {
		stuDao.update(entity);
	}

	@Override
	public void saveOrUpdate(ExamStu entity) {
		stuDao.saveOrUpdate(entity);
	}

	@Override
	public void delete(ExamStu entity) {
		stuDao.delete(entity);
	}

	@Override
	public ExamStu findByKey(Serializable id) {
		return stuDao.findByKey(id);
	}

	@Override
	public List<ExamStu> findAll() {
		return stuDao.findAll();
	}

	@Override
	public PageModel<ExamStuVO> findByPage() throws Exception {
		return stuDao.findByPage();
	}

	@Override
	public ExamStuVO findByStuNumber(String stuNumber) {
		return stuDao.findByStuNumber(stuNumber);
	}

	@Override
	public PageModel<ExamStuVO> findBySearchTip(String searchTip) {
		return stuDao.findBySearchTip(searchTip);
	}

	@Override
	public PageModel<ExamStuVO> findBySearchType(String[] num, String searchType) {
		return stuDao.findBySearchType(num, searchType);
	}
	
	
}
